package com.pug.zixun.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.pug.zixun.pojo.ChapterLesson;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author 飞哥yykk
 * 更多学习关注飞哥B站
 * 地址是：https://space.bilibili.com/490711252
 * @title: questions
 * @projectName ksd-user-course-center
 * @description: TODO
 * @date 2021/9/2720:59
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("gs_course")
public class Course implements java.io.Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private String title;
    private String content;
    private String tags;
    private String description;
    private Long categoryid;
    private String categorytitle;
    private Long categorycid;
    private String categoryctitle;
    private Integer gotop;
    private Integer views;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    private Integer iscomment;
    private Integer isdelete;
    private String htmlcontent;
    private Long userid;
    private Integer vip;
    private String avatar;
    private String nickname;
    private Integer status;
    private String img;
    private Integer collects;
    private Integer comments;
    private String coursetimer;
    private String price;
    private String realprice;
    private Integer coursetype;
    private Integer sorted;
    private String beginer;
    private Integer isapp;
    private Integer isonline;
    private Integer isnew;
    private Integer ishot;
    private Integer ispush;
    private String alipanpwd;
    private String alipanlink;
    private String trylink;
    private String downlink;
    private String downpwd;
    private String playvideo;
    private String lessoncount;
    private String giteelink;
    private String coursecss;
    private Integer coursebuy;
    private String courseimg;
    private String qqcode;
    private String qqgroupcode;
    private String gzcode;
    private Integer isnote;
    private Integer isfree;
    private String userintro;
    private String wxcode;
    private String commission;
    private Integer finished;
    private String discountprice;
    private Long activityid;
    private Long activitytype;

    @TableField(exist = false)//（章节数）
    private List<ChapterLesson> chapterLessonList;
    @TableField(exist = false) //（是否收藏）
    private boolean iscollect;
    @TableField(exist = false) //（是否购买）
    private Integer isbuy;
    // 学习数量
    @TableField(exist = false)
    private int studynum;
    @TableField(exist = false)
    private int videocount;
    @TableField(exist = false)
    private Double percent;
    @TableField(exist = false)
    private Double showid;
    @TableField(exist = false)
    private Double studyTime;
    @TableField(exist = false)
    private Map<String, Object> userCourse;
}
